package com.yan.studentsystem;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Index {
    public static final Scanner INPUT = new Scanner(System.in);
    //public static final ArrayList<Student> studentsList = new ArrayList<>();

    public static void main(String[] args) {
        outer:
        while (true) {
            System.out.println("--------欢迎来到学生管理系统--------");
            System.out.println("1 添加学生");
            System.out.println("2 删除学生");
            System.out.println("3 修改学生");
            System.out.println("4 查看学生");
            System.out.println("5 退出");
            System.out.println("请输入您的选择:");

            int choice = INPUT.nextInt();
            switch (choice) {
                case 1:
                    new Manage().addStudent();
                    break;
                case 2:
                    new Manage().deletDate();
                    break;
                case 3:
                    //new Manage().upDate();
                    break;
                case 4:
                    new Manage().findStudent();
                    break;
                case 5:

                    break outer;

            }
        }
    }

    /*public static void addStudent() {
        System.out.println("请输入学生学号");
        String sid = INPUT.next();
        System.out.println("请输入学生姓名");
        String name = INPUT.next();
        System.out.println("请输入学生年龄");
        int age = INPUT.nextInt();
        System.out.println("请输入学生居住地");
        String address = INPUT.next();
        Student stu = new Student(sid , name , age , address);
        studentsList.add(stu);
    }*/

   /* public static void findStudent(){
        for (Student student : studentsList) {
            System.out.println("学号:" + student.getSid() + "姓名:" + student.getName() + "年龄:" + student.getAge() + "居住地址:" + student.getaddress());
        }
    }*/

}


